from urllib.request import urlopen
html=urlopen('https://baike.baidu.com/robots.txt')
print(html.read().decode('utf-8'))
